From: Lars Ingebrigtsen Date: Mon, 1 Feb 2021 09:42:22 +0000 (+0100) Subject: Fix indentation of non-comment HTML with -- in it X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~18^2~4236 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a6be18461471b0889ded6084693664927a041704;p=emacs.git Fix indentation of non-comment HTML with -- in it * lisp/textmodes/sgml-mode.el (sgml-comment-indent-new-line): Only indent as if we're in a comment if syntax-ppss says that we're in a comment (bug#36227). --- diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index 3e29f055ece..7051f520b90 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el @@ -510,10 +510,12 @@ an optional alist of possible values." (with-no-warnings (defvar v2)) ; free for skeleton (defun sgml-comment-indent-new-line (&optional soft) - (let ((comment-start "-- ") - (comment-start-skip "\\(